<div id="editHousekeepingResourceModel" class="modal fade" tabindex="-1" role="dialog"
     aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">修改</h3>
                <div class="ibox-content">
                    <div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">物品类型</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="editHousekeepingResourceInfo.resTypeId"
                                            @change="setEditResTypeName(editHousekeepingResourceInfo.resTypeId)">
                                        <option selected disabled value="">必填，请选择物品类型</option>
                                        <option v-for="(item,index) in housekeepingResourceManageInfo.resourceStoreTypes"
                                                :value="item.rstId">
                                            {{item.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">物品名称</label>
                                <div class="col-sm-10">
                                    <input v-model="editHousekeepingResourceInfo.resName" type="text"
                                           placeholder="选填，请填写物品名称" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">物品编码</label>
                                <div class="col-sm-10">
                                    <input v-model="editHousekeepingResourceInfo.resCode" type="text"
                                           placeholder="选填，请填写物品编码" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">成本价</label>
                                <div class="col-sm-10">
                                    <input v-model="editHousekeepingResourceInfo.costPrice" type="text"
                                           placeholder="必填，请填写成本价" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">出售价</label>
                                <div class="col-sm-10">
                                    <input v-model="editHousekeepingResourceInfo.price" type="text"
                                           placeholder="必填，请填写出售价" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">库存</label>
                                <div class="col-sm-10">
                                    <input v-model="editHousekeepingResourceInfo.stock" type="text"
                                           placeholder="必填，请填写库存" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">供应商名称</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="editHousekeepingResourceInfo.supplierId"
                                            @change="setEditSupplierName(editHousekeepingResourceInfo.supplierId)">
                                        <option selected disabled value="">必填，请选择供应商</option>
                                        <option v-for="(item,index) in editHousekeepingResourceInfo.resourceSuppliers"
                                                :value="item.rsId">
                                            {{item.supplierName}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">描述</label>
                                <div class="col-sm-10">
                                    <textarea v-model="editHousekeepingResourceInfo.remark" placeholder="选填，请填写描述"
                                              class="form-control"></textarea>
                                </div>
                            </div>
                            <div class="ibox-content">
                                <button class="btn btn-primary float-right" type="button"
                                        v-on:click="editHousekeepingResource()">
                                    <i class="fa fa-check"></i>&nbsp;保存
                                </button>
                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                        data-dismiss="modal">
                                    <i class="fa fa-close"></i>&nbsp;取消
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>